package com.qzct.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *  实体类。
 *
 * @author 闽闽
 * @since 2025-01-11
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("")
@Table(value = "tb_cuisine_comments")
public class CuisineComments implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 评论id
     */
    @Id(keyType = KeyType.Auto)
    @ApiModelProperty("评论id")
    private Integer commentsId;

    /**
     * 用户id
     */
    @ApiModelProperty("用户id")
    private Integer userId;

    /**
     * 景点d
     */
    @ApiModelProperty("美食id")
    private Integer cuisineId;

    /**
     * 评论内容
     */
    @ApiModelProperty("评论内容")
    private String commentContent;

    /**
     * 评论时间
     */
    @ApiModelProperty("评论时间")
    @Column(onInsertValue = "now()")
    private LocalDateTime commentTime;

    /**
     * 是否审核通过 1通过，0没通过
     */
    @ApiModelProperty("是否审核通过 1通过，0没通过")
    private Integer isCheck;

}
